<?php

namespace app\services;

use plugin\admin\app\model\OrderComment;

class OrderCommentService
{
    public static function add($data)
    {
        $data['user_id'] = get_user_id();
        $data['created_time'] = date('Y-m-d H:i:s');
        $data['thumbs'] = json_encode($data['thumbs'], JSON_UNESCAPED_UNICODE);
        OrderComment::insert($data);
    }
}